
// int saveIplImageAsTIFF(IplImage* img, const char * outfilename, char * compressionarg);

class CropImage
{
private:

	static void findEdgeTele(IplImage *image, int ammount = 1);

	static void findEdgeTri(IplImage *image, int ammount = 1);

	/*
	static void cutImageTele(IplImage *image, std::string filename, int ammount = 1);
	
		static void cutImageTri(IplImage *image, std::string filename, int ammount = 1);*/
	

	static void saveImage(IplImage * image,CvRect area,std::string filename,int counter, std::string part, std::string type);

public:
	static void findCutLines(IplImage* image, int type, int ammount = 1);

	static void findAlignment(IplImage* image);

	static void cutImage(IplImage *image,int type, std::string filename, int part, int ammount);

	static void rotateImage(IplImage* &image);

	static void getLeftXValue(IplImage *image);
};